import { CustomFlowNode } from "src/custom-flow-node/entities/custom-flow-node.entity";
import { Column, CreateDateColumn, Entity, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";

@Entity()
export class CustomFlowSubmit {
  @PrimaryGeneratedColumn("uuid")
  id: string;

  @Column()
  matterSubmitId: string;

  @Column({
    default: null
  })
  customFormSubmitId: string;

  @Column()
  customFlowId: string;

  @Column()
  sort: number;

  @ManyToOne(() => CustomFlowNode)
  customFlowNode: CustomFlowNode;

  @Column()
  customFlowNodeId: string;

  @CreateDateColumn()
  createdDate: Date;

  @UpdateDateColumn()
  updatedDate: Date;
}
